//
//  FormatChecker.h
//  HuiMaiMall
//  有效性校验
//  Created by 刘 璨 on 12-7-27.
//  Copyright (c) 2012年 app梦工厂. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface FormatChecker : NSObject


+ (BOOL)validateWalletAddr:(NSString*)addr;
+ (BOOL)validateMobile:(NSString*)mobile;
+ (BOOL)validateTelephone:(NSString*)telephone;
+ (BOOL)validatePostage:(NSString*)postage;
+ (BOOL)validateEmail:(NSString*)email;
+ (BOOL)validateHttp:(NSString*)http;
+ (BOOL)validateTaxerIdentifier:(NSString*)identifier;
+ (BOOL)validateBankAccount:(NSString*)account;
+ (BOOL)validatePassword:(NSString*)pwd;
+ (BOOL)validateReceiver:(NSString *)info;
+ (BOOL)validateGoodsId:(NSString *)info;
+ (BOOL)validateTooToo:(NSString *)info;
+ (BOOL)validateDate:(NSString *)info;
+(BOOL)validateBarCode:(NSString *)info;
+(BOOL)validateWeb:(NSString *)info;
+(BOOL)validateNumber:(NSString *)info;
+(BOOL)validateAlphabetAndNumber:(NSString *)info;

+(NSString *)getSecurityPhoneNum:(NSString *)phoneNum;
+(BOOL)validatePrice:(NSString *)info;
+(BOOL)validateChargeTextField:(UITextField *)textField shouldChangeCharactersInRange:(NSRange)range replacementString:(NSString *)string;
@end
